package net.kesumu.yushabuserver.entity;

/**
 * friend request model
 * @author Z 2015-03-02
 *
 */
public class FriendRequest {
    public final static int FRIENDREQUEST_INITIATED = 0,
                            FRIENDREQUEST_ACCEPTED = 1,
                            FRIENDREQUEST_REFUSED = 2;
    private int friendRequestId;
    private int userId;
    private String userName;
    private int friendId;
    private String userYuYuChatId;
    private String message;
    private int state;
    public FriendRequest() {
    }
    public FriendRequest(int uid, int fid, String msg) {
        userId = uid;
        friendId = fid;
        message = msg;
        state = FRIENDREQUEST_INITIATED;
    }
    public FriendRequest(int uid, int fid, int sta) {
        userId = uid;
        friendId = fid;
        state = sta;
    }
    public FriendRequest(int uid, int fid, String msg, int sta, String una) {
        userId = uid;
        friendId = fid;
        message = msg;
        state = sta; 
        userName = una;
    }
    public int getFriendRequestId() {
        return friendRequestId;
    }
    public void setFriendRequestId(int friendRequestId) {
        this.friendRequestId = friendRequestId;
    }
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
    public int getFriendId() {
        return friendId;
    }
    public void setFriendId(int friendId) {
        this.friendId = friendId;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public int getState() {
        return state;
    }
    public void setState(int state) {
        this.state = state;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserYuYuChatId() {
        return userYuYuChatId;
    }
    public void setUserYuYuChatId(String userYuYuChatId) {
        this.userYuYuChatId = userYuYuChatId;
    }
    

}
